package com.wh.debeziumdemo.strategy;

import com.wh.debeziumdemo.listener.MysqlBinlogListener;
import io.debezium.data.Envelope;

/**
 * @description: 学生数据修改策略
 * @author: GooGoo
 * @time: 2023/8/19 23:17
 */
public abstract class StudentStrategy {

  /**
   * 获取操作类型 Envelope.Operation
   * @return
   */
    public abstract String getOperation();

    public abstract void doOperation(MysqlBinlogListener.ChangeData changeData);

    public String getRedisPrefix(){
      return "STUDENT_";
    }
}
